@echo off

REM Step 2: 登录阿里云 Docker Registry
echo Logging in to Alibaba Cloud Docker Registry...
docker login --username=小苯苯  --password=127.0.0.1 registry.cn-hangzhou.aliyuncs.com

REM Step 3: 镜像打标签
echo Tagging the Docker image...
docker tag springboot-friend:latest registry.cn-hangzhou.aliyuncs.com/xbenben/springboot-friend:latest

REM Step 4: 推送镜像到阿里云
echo Pushing the Docker image to Alibaba Cloud Docker Registry...
docker push registry.cn-hangzhou.aliyuncs.com/xbenben/springboot-friend:latest

echo Deployment script executed successfully.
pause
